package cn.commander.service;

import cn.commander.base.BaseService;
import cn.commander.mapper.SysUserMapper;
import cn.commander.shiro.entity.SysUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


/**
 * ClassName: SysUserService <br/>
 * Author: zhongyi_yang <br/>
 * Description:  <br/>
 * Version: 1.0 <br/>
 * Date: 2018/6/7 19:41 <br/>
 * To change this template use File | Settings | File Templates.
 */
@Service
@Transactional
public class SysUserService extends BaseService<SysUser, String> {
	@Autowired
	private SysUserMapper sysUserMapper;

	public SysUser selectUsername(String username) {
		return sysUserMapper.getUserByUserName(username);
	}
}
